package com.chixing.ih.util;

import javax.servlet.http.HttpServletRequest;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @version 1.0
 * @Author MasterYan
 * @Date 2020/10/15
 * Time: 15:13
 */

public class RequestIdUtil {

    public static Long getMyId(HttpServletRequest request) {
        String userId = (String) request.getAttribute("userId");
        Long myId = Long.valueOf(userId);
        return myId;
    }

}
